import Vue from 'vue'
import Router from 'vue-router'

import JoinMatch from '@/components/JoinMatch'
import MatchResult from '@/components/MatchResult'
import JoinCount from '@/components/JoinCount'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/joinmatch'
    },
    {
      path: '/joinmatch',
      name: 'joinmatch',
      component: JoinMatch,
      meta:{index:1}
    },
    {
      path: '/matchresult',
      name: 'matchresult',
      component: MatchResult,
      meta:{index:3}

    },
    {
      path: '/joincount',
      name: 'joincount',
      component: JoinCount,
      meta:{index:2}

    }
  ]
})
